# New ports collection makefile for: plank
# Date created:		2011-12-06
# Whom:		Olivier Duchateau <duchateau.olivier@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	plank
PORTVERSION=	0.5.0
CATEGORIES=	x11-wm
MASTER_SITES=	http://avignu.tuxfamily.org/FreeBSD/distfiles/
#DISTNAME=	${PORTNAME}-${PORTVERSION}~bzr467
DISTNAME=	${PORTNAME}-${PORTVERSION}

MAINTAINER=	duchateau.olivier@gmail.com
COMMENT=	Elegant, simple, and clean dock

WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}

BUILD_DEPENDS=	valac:${PORTSDIR}/lang/vala
LIB_DEPENDS=	bamf.0:${PORTSDIR}/sysutils/bamf \
	unique-1.0.2:${PORTSDIR}/x11-toolkits/unique \
	gee.2:${PORTSDIR}/devel/libgee

USE_XZ=	yes
GNU_CONFIGURE=	yes
USE_GNOME=	glib20 gtk30
USE_PKGCONFIG=	build
INSTALLS_ICONS=	yes
USES=		gmake pathfix desktop-file-utils gettext
CONFIGURE_ARGS+=	--with-gtk=3
CONFIGURE_ENV+=	PLANK_CORE_CFLAGS='-I/usr/local/include/libbamf -I/usr/local/lib/libbamf/include -DWNCK_I_KNOW_THIS_IS_UNSTABLE -I/usr/local/include/libwnck-3.0 -I/usr/local/include/gtk-3.0 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/atk-1.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0 -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -I/usr/local/include/harfbuzz -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/pango-1.0 -pthread -I/usr/local/include/cairo -I/usr/local/include/pixman-1  -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -I/usr/local/include/libpng15 -I/usr/local/include/startup-notification-1.0 -D_THREAD_SAFE -I/usr/local/include/gee-0.8 -I/usr/local/include/glib-2.0 -I/usr/local/include  '

CFLAGS+=	-I${LOCALBASE}/include/gtk-3.0/
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

MAN1=	plank.1

.include <bsd.port.mk>
